<template>
  <van-nav-bar class="choose" title="选车">
    <template #left>
      <van-icon class="logo" class-prefix="icon" name="qichezhijia" size="60PX" />
    </template>
    <template #right>
      <van-icon name="search" size="18" @click="search" />
    </template>
  </van-nav-bar>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';
const router = useRouter()
const search = () => {
  router.push({
    path: '/search'
  })
}
</script>

<style lang="scss" scoped>
.choose {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;

  .logo {
    color: rgb(21 86 207);
  }
}
</style>